// Decompiled by GOOSIN CO,LTD Copyright 2010 Pavel Kouznetsov.
// home page: http://www.Goosin.net
// Decompiler options: packimports(3) fieldsfirst ansi space 
// Source File Name:   getMultiNameFromID.java

package include.get_name_from_ID;

import include.nseer_db.nseer_db;
import java.sql.ResultSet;

public class getMultiNameFromID
{

	public getMultiNameFromID()
	{
	}

	public String[] getNameFromID(String unit_db_name, String file_ID)
	{
		nseer_db db = new nseer_db(unit_db_name);
		String name[] = new String[8];
		try
		{
			String sql = (new StringBuilder("select * from finance_config_file_kind where file_ID='")).append(file_ID).append("'").toString();
			ResultSet rs = db.executeQuery(sql);
			if (rs.next())
			{
				name[0] = rs.getString("file_name");
				name[1] = rs.getString("debit_or_loan");
				name[2] = rs.getString("itema_name");
				name[3] = rs.getString("itemb_name");
				name[4] = rs.getString("itemd_name");
				name[5] = rs.getString("profit_or_cost");
				name[6] = rs.getString("chain_name");
				name[7] = rs.getString("corr_stock_tag");
			}
			db.close();
		}
		catch (Exception ex)
		{
			ex.printStackTrace();
		}
		return name;
	}
}
